package com.feng.adminserver.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {

    @Value("${person.name:李四}")
    private String name;

    @GetMapping("/")
    @ResponseBody
    public String hello(){
        return "Hello  " + name;
    }
}
